#!/bin/bash

NODE_NAME=$1
kubectl drain $NODE_NAME --delete-local-data --force --ignore-daemonsets node/$NODE_NAME
kubectl delete node $NODE_NAME
